package 设计模式.设计原则.迪米特原则;

import java.util.ArrayList;
import java.util.List;

public class TeamLeader {

    public void checkNumberOfCourse(){
        List<Course> courseList = new ArrayList<>();
        for(int i=0;i<20;i++){
            courseList.add(new Course());
        }
        System.out.println("课程数量为："+courseList.size());
    }


}
